export const YES_OR_NO = [
    { label: '是', value: '1' },
    { label: '否', value: '0' }
]

export const PHONE_REG = /^1[3-9]\d{9}$/;

export const EMAIL_REG = /^[^\s@]+@[^\s@]+\.[^\s@]=$/;

export const CHINESE_REG = /[\u4e00-\u9fa5]/;

export const APP_ROUTE_NAME = 'main';

export const COMPONENT_DATA = [
    { label: '输入框', value: 'input' },
    { label: '数字输入框', value: 'inputNumber' },
    { label: '选择器', value: 'select' },
    { label: '多选框', value: 'checkbox' },
    { label: '单选框', value: 'radio' },
    { label: '时间选择器', value: 'datePicker' },
    { label: '时间范围选择器', value: 'dateRangePicker' },
    { label: '文本域', value: 'textarea' },
]

export const ROUTER_ANIMATION_DATA = [
    { label: '无动画', value: 'none' },
    { label: '显隐', value: 'fade' },
    { label: '偏移', value: 'translate' },
    { label: '缩放', value: 'scale' }
]